package com.thm.tfast.modules.sys.model.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ClassName UserPasswordDto
 * @Author THM
 * @Date 2022/10/27 9:59
 * @Version 1.0
 * @Description 用户修改密码
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserPasswordDto {

    @ApiModelProperty(value = "用户ID",required = true)
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "原密码",required = true)
    @NotEmpty(message = "原密码不能为空")
    private String oldPassword;

    @ApiModelProperty(value = "新密码",required = true)
    @NotEmpty(message = "新密码不能为空")
    private String newPassword;
}
